<template>
    <div class="Service">
      <header>
        <p><router-link to="/"><img src="../../static/img/transfer/contact_06.jpg">首页</router-link></p>
        <p>服务提醒</p>
        <p><router-link to="/Setting">设置</router-link></p>
      </header>
      <section class="s-s-f" v-for="item in ser">
        <img v-bind:src="item.url" alt="">
        <div class="s-f-d">
          <p>{{item.text}}</p>
          <p>{{item.tex}}</p>
          <p>{{item.txt}}</p>
      </div>
      </section>
      <p class="s-s-p">以下为旧消息</p>
      <section class="s-s-f" v-for="item in servi">
        <img v-bind:src="item.url" alt="">
        <div class="s-f-d">
          <p>{{item.text}}</p>
          <p>{{item.tex}}</p>
          <p>{{item.txt}}</p>
        </div>
        <img v-bind:src="item.src" alt="" class="s-img">
      </section>
      <p class="s-t-p">-------我是有底线的-------</p>
    </div>
</template>

<script>
    export default {
        name: "Service",
      data (){
          return{
            ser:[
              {
                url:'../../static/img/Ser-01.png',
                text:'我的健康   08:24',
                tex:'空气污染送健康果咯',
                txt:'长沙市今日AQl超过120'
              },
              {
                url:'../../static/img/Ser-02.png',
                text:'蚂蚁森林  07:26',
                tex:'又有好友收了你的绿色能量',
                txt:'饶太太在07：26收取'
              }
            ],
            servi:[
              {
                url:'../../static/img/Ser-03.png',
                text:'我的快件   04-10 16:03',
                tex:'已取件',
                txt:'圆通速运：889076337075418811...',
                src:'../../static/img/Ser-04.png'
              },
              {
                url:'../../static/img/Ser-05.png',
                text:'蚂蚁庄园  04-10 15:03',
                tex:'我出去探险了',
                txt:'小鸡在15：26离开',
                src:''
              }
            ]
          }
      }
    }
</script>

<style scoped>
  header{
    display: flex;
    font-size: 1.2rem;
    background: #fff;
    border-bottom: 1px solid #ddd;
    margin-bottom: .6rem;
    justify-content: space-between;
    padding: .8rem;
    align-items: center;
  }
  header p:nth-child(2){
    font-weight: bold;
    margin-right: .7rem;
  }
  header p:nth-child(1) a, header p:nth-child(3) a{
    font-size: 1rem;
    color: #108ee9;
    display: block;
  }
  header p:nth-child(1) a img{
    width: .8rem;
    height: 1.2rem;
    margin-right: .3rem;
  }
  .s-s-f{
    display: flex;
    background: white;
    padding: .8rem;
    border-bottom: 1px solid #ddd;
    border-top: 1px solid #ddd;
    margin-bottom:.6rem ;
  }
  .s-s-f img{
    width: 2rem;
    height: 2rem;
    margin-right: .3rem;
  }
  .s-f-d{
    line-height: 2.3rem;
  }
  .s-f-d p:first-child{
    font-size: .9rem;
    color: #a1a1a1;
  }
  .s-f-d p:nth-child(2){
    font-size:1.2rem ;
  }
  .s-f-d p:nth-child(3){
    width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .95rem;
    color: #a1a1a1;
  }
  .s-s-p{
    padding: .8rem 1.5rem;
    color: #a1a1a1;
    font-size: .9rem;
  }
   .s-s-f img.s-img {
     width: 3.5rem;
     height: 3.5rem;
     margin-top: 3.5rem;
   }

  .s-t-p{
    color: #a1a1a1;
    font-size: .9rem;
    text-align: center;
    padding: .8rem 0;
  }
</style>
